/*
* 改写element-ui样式
*/
@import "color";

/* 按钮 */
.el-button {
    border-radius: 2px;

    &.el-button--large {
        padding: 15px 25px;

        &.limit {
            padding: 15px 20px;
        }
    }

    &.el-button--small {
        &.limit {
            padding: 9px 10px;
        }

        &.vast {
            padding-left: 25px;
            padding-right: 25px;
        }
    }

    &.el-button--medium {
        &.limit {
            padding: 10px 15px;
        }
    }

    &.el-button--mini {
        padding: 5px 13px;

        &.limit {
            padding: 5px 8px;
        }
    }

    &.min {
        min-width: 114px;
    }

    &.limit {
        padding: 12px 15px;
    }

    &.no-radius {
        border-radius: 0;
    }

    & + .el-button {
        margin-left: 10px;
    }

    &.text {
        cursor: text;
        user-select: text;
    }
}

/* 灰色线框按钮 */
.el-button--default {
    border-color: #c2c2c2;
    background-color: transparent;
    outline: none;

    &:hover, &:focus, &:active {
        outline: none;
    }
}

/* 主题色线框按钮 */
.el-button--default.primary {
}

/* 次题色线框按钮 */
.el-button--default.minor {
}

/* 主题按钮 */
.el-button--primary {
}

/* 次主题按钮 */
.el-button--minor {
}

/* 按钮禁用 */
.el-button.is-disabled, .el-button.is-disabled:hover, .el-button.is-disabled:focus, .el-button.is-disabled:active {
    color: #fff;
    background-color: #C9C9C9;
    border-color: #C9C9C9;
}

/* 输入框 */
.el-input__inner, .el-textarea__inner {
    color: @body-color;
    border-color: #EFEFEF;
    border-radius: 2px;
    /* placeholder提示颜色更改 */

    &::-webkit-input-placeholder {
        color: @gray-color;
    }

    &:-moz-placeholder {
        color: @gray-color;
    }

    &::-moz-placeholder {
        color: @gray-color;
    }

    &:-ms-input-placeholder {
        color: @gray-color;
    }
}

.el-input {
    &.no-radius {
        .el-input__inner {
            border-radius: 0;
        }
    }
}

.el-input--large {
    font-size: 14px;

    .el-input__inner {
        height: 46px;
    }
}

.el-input--small {
    font-size: 14px;
}

/* select下拉框 */
.el-select {
    .el-input__icon {
        line-height: .4rem;
    }

    &.el-select--small {
        .el-input__icon {
            line-height: .3rem;
        }
    }

    &.el-select--mini {
        .el-input__icon {
            line-height: .26rem;
        }
    }

    .el-input {
        .el-select__caret {
            font-size: .14rem;
        }
    }
}

.el-input--suffix {
    .el-input__inner {
    }

    .el-input__suffix-inner {

        .el-icon-arrow-up {
            color: @gray-color;

            &:before {
                content: '\e78f';
            }
        }
    }
}

.el-select-dropdown__list {
    padding-left: 6px;
    padding-right: 6px;
}

.el-select-dropdown__item {
    &.hover, &:hover {
    }
}

.el-select-dropdown {
    border-radius: 0;
}

.el-popper {
    .popper__arrow {
        display: none;
    }
}

.el-select-group__wrap:not(:last-of-type) {
    padding-bottom: .24rem;

    &:after {
        content: "";
        position: absolute;
        display: block;
        left: 20px;
        right: 20px;
        bottom: 12px;
        height: 1px;
        background: #999;
    }
}

/* 表格 */
.el-table {
    .cell {
        line-height: 20px;
    }

    th, td {
        line-height: 20px;
        padding: 10px 0;
        min-height: 40px;
    }

    th {
        background-color: #F5F8FB;
    }

    &.el-table--border {
        border-color: #EFEFEF;

        th, td {
            border-right-color: #EFEFEF;
            border-bottom-color: #EFEFEF;
        }
    }

    &.el-table--striped {
        .el-table__body {
            tr.el-table__row--striped {
                td {
                    background-color: #F5F8FB;
                }
            }
        }

        &.stripe-inverse {
            .el-table__body {
                tr:first-child {
                    td {
                        background-color: #F5F8FB;
                    }
                }

                tr.el-table__row--striped {
                    td {
                        background-color: #fff;
                    }

                    &:hover {
                        td {
                            background-color: #F5F8FB;
                        }
                    }

                    & + tr {
                        td {
                            background-color: #F5F8FB;
                        }
                    }
                }
            }
        }
    }

    &.el-table--enable-row-hover {
        .el-table__body {
            tr {
                &:hover {
                    td {
                        background-color: #F5F8FB;
                    }
                }
            }
        }
    }

    .operation {
        font-size: 0;

        > * {
            margin-right: 10px;

            &:last-child {
                margin-right: 0;
            }
        }
    }
}

body .el-table th.gutter {
    display: table-cell !important;
}

body .el-table colgroup.gutter {
    display: table-cell !important;
}

/* upload */
.el-upload-list__item {
    .el-icon-upload-success {
    }
}

.el-upload-list--picture {
    .el-upload-list__item-status-label {
    }
}

/* time-line */
.el-timeline {
    .el-timeline-item {
        padding: 10px 0;

        &:first-child {
            &:not(:last-child) {
                .el-timeline-item__tail {
                    display: inline-block !important;
                    //top: calc(50% - 5px);
                    top: 50%;
                    height: 50%;
                }

                .el-timeline-item__node {
                    display: inline-block;
                }
            }

            .el-timeline-item__tail {
                display: none !important;
            }

            .el-timeline-item__node {
                display: none;
            }
        }

        &:last-child {
            .el-timeline-item__tail {
                display: inline-block;
                //height: calc(50% - 5px);
                height: 50%;
            }
        }

        .el-timeline-item__tail {
            left: 5px;
            top: 0;
        }

        .el-timeline-item__node {
            top: 50%;
            left: 0;
            //margin-top: -5px;
        }
    }
}

/* 分页 */
.el-pagination {
    .el-button {
        padding: 0 6px;
    }
}

/* 侧边栏 */
.el-menu {
    .el-submenu {
        .el-submenu__title {
            position: relative;
            padding: 0 20px;

            i {
                margin-right: 10px;
                color: #fff;

                &.el-icon-arrow-down {
                    font-size: 14px;

                    &:before {
                        content: '\e790';
                    }
                }
            }
        }
    }
}

/* form */
.el-form-item__label, .el-form-item__content {
    .el-input {
        vertical-align: top;
    }
}

.el-form-item {
    margin-bottom: 30px;
}

.el-form-item--small.el-form-item {
    margin-bottom: 20px;
}

/* 步骤条 */
.el-step__icon {
    &.is-icon {
        width: auto;
    }
}

.el-step__head, .el-step__title {
    &.is-finish {
        .el-step__line {
        }
    }

    .el-step__line {
        background-color: #EFEFEF;
    }
}


.el-scrollbar__bar {
    z-index: 10;
}
